package com.xingkeduo.business.schedule.remote;

import com.alibaba.fastjson.JSON;
import com.xingkeduo.business.schedule.dto.ResponseMessage;
import com.xingkeduo.business.schedule.remote.feign.WorkPadFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 文件概述
 *
 * @author wangxilong <wangxilong@xingkeduo.com>
 * @version id:v0.1 19-5-28 下午5:53
 * @package BeautyOS
 * @copyright Copyright (c) XKD 2019
 */
@Slf4j
@Service
public class WorkPadRemoteService {

    @Resource
    public WorkPadFeignService workPadFeignService;
    /**
     * 每天12点更新未打卡发型师
     *
     * @return
     */
    public void clockTask() {
        ResponseMessage responseMessage = workPadFeignService.clockTask();
        log.info("getLineNum responseMessage:{}", JSON.toJSONString(responseMessage));
    }

    /**
     * 每周四生成两周空排班
     *
     * @return
     */
    public void attendanceTask() {
        ResponseMessage responseMessage = workPadFeignService.attendanceTask();
        log.info("getLineNum responseMessage:{}", JSON.toJSONString(responseMessage));
    }
}
